FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.4.11  |  FHIR Version n/a  User: [n/a]

Resource StructureMap/FHIR Server from package who.ddcc#current (62 ms)

Package who.ddcc
Type StructureMap
Id Id
FHIR Version R4
Source http://smart.who.int/ddcc/https://build.fhir.org/ig/WorldHealthOrganization/ddcc/StructureMap-SHCtoDDCC.html
Url http://smart.who.int/ddcc/StructureMap/SHCtoDDCC
Version 1.0.0
Status draft
Date 2024-10-17T05:03:04+00:00
Name SHCtoDDCC
Experimental False
Realm uv
Authority who

Resources that use this resource

No resources found


Resources that this resource uses

No resources found



Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureMap SHCtoDDCC

map "http://smart.who.int/ddcc/StructureMap/SHCtoDDCC" = "SHCtoDDCC"

uses "http://hl7.org/fhir/uv/shc-vaccination/StructureDefinition/shc-vaccination-bundle-dm" alias SHCVaccinationBundleDM as source
uses "http://hl7.org/fhir/uv/shc-vaccination/StructureDefinition/shc-patient-general-dm" alias SHCPatientDM as source
uses "http://hl7.org/fhir/uv/shc-vaccination/StructureDefinition/shc-vaccination-dm" alias SHCImmunizationDM as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target
uses "http://smart.who.int/ddcc/StructureDefinition/DDCCDocument" alias DDCCDocument as target
uses "http://smart.who.int/ddcc/StructureDefinition/DDCCPatient" alias DDCCPatient as target
uses "http://smart.who.int/ddcc/StructureDefinition/DDCCComposition" alias DDCCComposition as target
uses "http://smart.who.int/ddcc/StructureDefinition/DDCCOrganization" alias DDCCOrganization as target
uses "http://smart.who.int/ddcc/StructureDefinition/DDCCCountryOfVaccination" alias DDCCCountryOfVaccination as target
uses "http://smart.who.int/ddcc/StructureDefinition/DDCCVaccineBrand" alias DDCCVaccineBrand as target
uses "http://smart.who.int/ddcc/StructureDefinition/DDCCImmunization" alias DDCCImmunization as target

group SHCtoDDCC(source shc : SHCVaccinationBundleDM, target ddcc : Bundle) {
  shc.entry as patientEntrySHC then {
    patientEntrySHC.resource : Patient first as patientSHC then {
      shc.entry as immunizationEntrySHC then {
        immunizationEntrySHC.resource : Immunization as immunizationSHC then {
          immunizationEntrySHC -> ddcc.type = 'collection' "Bundle type";
          immunizationEntrySHC -> ddcc.entry as ddccEntry then {
            immunizationSHC -> ddccEntry.resource = create('Bundle') as ddccdocument then {
              immunizationSHC -> ddccdocument.type = 'document' "DDCC Document type";
              patientSHC -> ddccdocument.entry as ddccDocumentEntry then {
                patientSHC -> ddccDocumentEntry.resource = create('Patient') as patientDDCC then SHCPatienttoDDCC(patientSHC, patientDDCC) "DDCC Document patient resource";
              } "DDCC Document patient entry";
              immunizationSHC -> ddccdocument.entry as ddccDocumentEntry then {
                immunizationSHC -> ddccDocumentEntry.resource = create('Immunization') as immunizationDDCC then SHCImmunizationtoDDCC(immunizationSHC, immunizationDDCC) "DDCC Document immunization resource";
              } "DDCC Document immunization entry";
            } "DDCC Document bundle";
          } "DDCC Document entry";
        } "Is immunization entry";
      } "For each immunization entry";
    } "Is Patient entry";
  } "map patient";
}

group SHCPatienttoDDCC(source patient : SHCPatientDM, target patientDDCC : DDCCPatient) {
  immunization.status as status -> immunizationDDCC.status = status "Status";
  immunization.coding as coding -> immunizationDDCC.coding = coding "Coding";
  immunization.occurrence as occurrenceDateTime -> immunizationDDCC.occurrence = occurrenceDateTime "Occurrence DateTime";
  immunization.manfacturer as manfacturer -> immunizationDDCC.manfacturer = manfacturer "Manufacturer";
  immunization.lotNumber as lotNumber -> immunizationDDCC.lotNumber = lotNumber "Lot Number";
}

group SHCImmunizationtoDDCC(source immunization : SHCImmunizationDM, target immunizationDDCC : DDCCImmunization) {
  immunization.status as status -> immunizationDDCC.status = status "Status";
  immunization.coding as coding -> immunizationDDCC.coding = coding "Coding";
  immunization.occurrence as occurrenceDateTime -> immunizationDDCC.occurrence = occurrenceDateTime "Occurrence DateTime";
  immunization.manfacturer as manfacturer -> immunizationDDCC.manfacturer = manfacturer "Manufacturer";
  immunization.lotNumber as lotNumber -> immunizationDDCC.lotNumber = lotNumber "Lot Number";
}


Source

{
  "resourceType" : "StructureMap",
  "id" : "SHCtoDDCC",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap SHCtoDDCC</b></p><a name=\"SHCtoDDCC\"> </a><a name=\"hcSHCtoDDCC\"> </a><a name=\"SHCtoDDCC-en-US\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> &quot;</span>http://smart.who.int/ddcc/StructureMap/SHCtoDDCC<span style=\"color: navy\">&quot; = &quot;</span>SHCtoDDCC<span style=\"color: navy\">&quot;\r\n\r\n</span><b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/uv/shc-vaccination/StructureDefinition/shc-vaccination-bundle-dm<span style=\"color: navy\">&quot; </span><b>alias </b>SHCVaccinationBundleDM <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/uv/shc-vaccination/StructureDefinition/shc-patient-general-dm<span style=\"color: navy\">&quot; </span><b>alias </b>SHCPatientDM <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/uv/shc-vaccination/StructureDefinition/shc-vaccination-dm<span style=\"color: navy\">&quot; </span><b>alias </b>SHCImmunizationDM <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/bundle.html\" title=\"Bundle\">http://hl7.org/fhir/StructureDefinition/Bundle</a><span style=\"color: navy\">&quot; </span><b>alias </b>Bundle <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-DDCCDocument.html\" title=\"DDCC Document\">http://smart.who.int/ddcc/StructureDefinition/DDCCDocument</a><span style=\"color: navy\">&quot; </span><b>alias </b>DDCCDocument <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-DDCCPatient.html\" title=\"DDCC Patient\">http://smart.who.int/ddcc/StructureDefinition/DDCCPatient</a><span style=\"color: navy\">&quot; </span><b>alias </b>DDCCPatient <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-DDCCComposition.html\" title=\"DDCC Composition\">http://smart.who.int/ddcc/StructureDefinition/DDCCComposition</a><span style=\"color: navy\">&quot; </span><b>alias </b>DDCCComposition <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-DDCCOrganization.html\" title=\"DDCC Organization\">http://smart.who.int/ddcc/StructureDefinition/DDCCOrganization</a><span style=\"color: navy\">&quot; </span><b>alias </b>DDCCOrganization <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://smart.who.int/ddcc/StructureDefinition/DDCCCountryOfVaccination<span style=\"color: navy\">&quot; </span><b>alias </b>DDCCCountryOfVaccination <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://smart.who.int/ddcc/StructureDefinition/DDCCVaccineBrand<span style=\"color: navy\">&quot; </span><b>alias </b>DDCCVaccineBrand <b>as </b><b>target</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"StructureDefinition-DDCCImmunization.html\" title=\"DDCC Immunization\">http://smart.who.int/ddcc/StructureDefinition/DDCCImmunization</a><span style=\"color: navy\">&quot; </span><b>alias </b>DDCCImmunization <b>as </b><b>target</b>\r\n\r\n<b>group </b>SHCtoDDCC<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">shc</span><span style=\"color: navy\"> : </span>SHCVaccinationBundleDM, <b>target</b> <span style=\"color: maroon\">ddcc</span><span style=\"color: navy\"> : </span>Bundle<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> shc.entry<b> as </b><span style=\"color: maroon\">patientEntrySHC</span><b> then</b><span style=\"color: navy\"> {\r\n</span> patientEntrySHC.resource<span style=\"color: navy\"> : </span>Patient first<b> as </b><span style=\"color: maroon\">patientSHC</span><b> then</b><span style=\"color: navy\"> {\r\n</span> shc.entry<b> as </b><span style=\"color: maroon\">immunizationEntrySHC</span><b> then</b><span style=\"color: navy\"> {\r\n</span> immunizationEntrySHC.resource<span style=\"color: navy\"> : </span>Immunization<b> as </b><span style=\"color: maroon\">immunizationSHC</span><b> then</b><span style=\"color: navy\"> {\r\n</span> immunizationEntrySHC<span style=\"color: navy\"><b> -&gt; </b></span>ddcc.type = <span style=\"color: blue\">'collection'</span> <i>&quot;Bundle type&quot;</i><span style=\"color: navy\">;</span>\r\n immunizationEntrySHC<span style=\"color: navy\"><b> -&gt; </b></span>ddcc.entry<b> as </b><span style=\"color: maroon\">ddccEntry</span><b> then</b><span style=\"color: navy\"> {\r\n</span> immunizationSHC<span style=\"color: navy\"><b> -&gt; </b></span>ddccEntry.resource = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Bundle'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">ddccdocument</span><b> then</b><span style=\"color: navy\"> {\r\n</span> immunizationSHC<span style=\"color: navy\"><b> -&gt; </b></span>ddccdocument.type = <span style=\"color: blue\">'document'</span> <i>&quot;DDCC Document type&quot;</i><span style=\"color: navy\">;</span>\r\n patientSHC<span style=\"color: navy\"><b> -&gt; </b></span>ddccdocument.entry<b> as </b><span style=\"color: maroon\">ddccDocumentEntry</span><b> then</b><span style=\"color: navy\"> {\r\n</span> patientSHC<span style=\"color: navy\"><b> -&gt; </b></span>ddccDocumentEntry.resource = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Patient'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">patientDDCC</span><b> then </b>SHCPatienttoDDCC<span style=\"color: navy\">(</span><span style=\"color: maroon\">patientSHC</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">patientDDCC</span><span style=\"color: navy\">)</span> <i>&quot;DDCC Document patient resource&quot;</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>&quot;DDCC Document patient entry&quot;</i><span style=\"color: navy\">;</span>\r\n immunizationSHC<span style=\"color: navy\"><b> -&gt; </b></span>ddccdocument.entry<b> as </b><span style=\"color: maroon\">ddccDocumentEntry</span><b> then</b><span style=\"color: navy\"> {\r\n</span> immunizationSHC<span style=\"color: navy\"><b> -&gt; </b></span>ddccDocumentEntry.resource = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Immunization'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">immunizationDDCC</span><b> then </b>SHCImmunizationtoDDCC<span style=\"color: navy\">(</span><span style=\"color: maroon\">immunizationSHC</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">immunizationDDCC</span><span style=\"color: navy\">)</span> <i>&quot;DDCC Document immunization resource&quot;</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>&quot;DDCC Document immunization entry&quot;</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>&quot;DDCC Document bundle&quot;</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>&quot;DDCC Document entry&quot;</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>&quot;Is immunization entry&quot;</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>&quot;For each immunization entry&quot;</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>&quot;Is Patient entry&quot;</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>&quot;map patient&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>SHCPatienttoDDCC<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">patient</span><span style=\"color: navy\"> : </span>SHCPatientDM, <b>target</b> <span style=\"color: maroon\">patientDDCC</span><span style=\"color: navy\"> : </span>DDCCPatient<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> immunization.status<b> as </b><span style=\"color: maroon\">status</span><span style=\"color: navy\"><b> -&gt; </b></span>immunizationDDCC.status = <span style=\"color: maroon\">status</span> <i>&quot;Status&quot;</i><span style=\"color: navy\">;</span>\r\n immunization.coding<b> as </b><span style=\"color: maroon\">coding</span><span style=\"color: navy\"><b> -&gt; </b></span>immunizationDDCC.coding = <span style=\"color: maroon\">coding</span> <i>&quot;Coding&quot;</i><span style=\"color: navy\">;</span>\r\n immunization.occurrence<b> as </b><span style=\"color: maroon\">occurrenceDateTime</span><span style=\"color: navy\"><b> -&gt; </b></span>immunizationDDCC.occurrence = <span style=\"color: maroon\">occurrenceDateTime</span> <i>&quot;Occurrence DateTime&quot;</i><span style=\"color: navy\">;</span>\r\n immunization.manfacturer<b> as </b><span style=\"color: maroon\">manfacturer</span><span style=\"color: navy\"><b> -&gt; </b></span>immunizationDDCC.manfacturer = <span style=\"color: maroon\">manfacturer</span> <i>&quot;Manufacturer&quot;</i><span style=\"color: navy\">;</span>\r\n immunization.lotNumber<b> as </b><span style=\"color: maroon\">lotNumber</span><span style=\"color: navy\"><b> -&gt; </b></span>immunizationDDCC.lotNumber = <span style=\"color: maroon\">lotNumber</span> <i>&quot;Lot Number&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>SHCImmunizationtoDDCC<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">immunization</span><span style=\"color: navy\"> : </span>SHCImmunizationDM, <b>target</b> <span style=\"color: maroon\">immunizationDDCC</span><span style=\"color: navy\"> : </span>DDCCImmunization<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> immunization.status<b> as </b><span style=\"color: maroon\">status</span><span style=\"color: navy\"><b> -&gt; </b></span>immunizationDDCC.status = <span style=\"color: maroon\">status</span> <i>&quot;Status&quot;</i><span style=\"color: navy\">;</span>\r\n immunization.coding<b> as </b><span style=\"color: maroon\">coding</span><span style=\"color: navy\"><b> -&gt; </b></span>immunizationDDCC.coding = <span style=\"color: maroon\">coding</span> <i>&quot;Coding&quot;</i><span style=\"color: navy\">;</span>\r\n immunization.occurrence<b> as </b><span style=\"color: maroon\">occurrenceDateTime</span><span style=\"color: navy\"><b> -&gt; </b></span>immunizationDDCC.occurrence = <span style=\"color: maroon\">occurrenceDateTime</span> <i>&quot;Occurrence DateTime&quot;</i><span style=\"color: navy\">;</span>\r\n immunization.manfacturer<b> as </b><span style=\"color: maroon\">manfacturer</span><span style=\"color: navy\"><b> -&gt; </b></span>immunizationDDCC.manfacturer = <span style=\"color: maroon\">manfacturer</span> <i>&quot;Manufacturer&quot;</i><span style=\"color: navy\">;</span>\r\n immunization.lotNumber<b> as </b><span style=\"color: maroon\">lotNumber</span><span style=\"color: navy\"><b> -&gt; </b></span>immunizationDDCC.lotNumber = <span style=\"color: maroon\">lotNumber</span> <i>&quot;Lot Number&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "url" : "http://smart.who.int/ddcc/StructureMap/SHCtoDDCC",
  "version" : "1.0.0",
  "name" : "SHCtoDDCC",
  "status" : "draft",
  "date" : "2024-10-17T05:03:04+00:00",
  "publisher" : "WHO",
  "contact" : [
    {
      "name" : "WHO",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://who.int"
        }
      ]
    }
  ],
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/uv/shc-vaccination/StructureDefinition/shc-vaccination-bundle-dm",
      "mode" : "source",
      "alias" : "SHCVaccinationBundleDM"
    },
    {
      "url" : "http://hl7.org/fhir/uv/shc-vaccination/StructureDefinition/shc-patient-general-dm",
      "mode" : "source",
      "alias" : "SHCPatientDM"
    },
    {
      "url" : "http://hl7.org/fhir/uv/shc-vaccination/StructureDefinition/shc-vaccination-dm",
      "mode" : "source",
      "alias" : "SHCImmunizationDM"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/Bundle",
      "mode" : "target",
      "alias" : "Bundle"
    },
    {
      "url" : "http://smart.who.int/ddcc/StructureDefinition/DDCCDocument",
      "mode" : "target",
      "alias" : "DDCCDocument"
    },
    {
      "url" : "http://smart.who.int/ddcc/StructureDefinition/DDCCPatient",
      "mode" : "target",
      "alias" : "DDCCPatient"
    },
    {
      "url" : "http://smart.who.int/ddcc/StructureDefinition/DDCCComposition",
      "mode" : "target",
      "alias" : "DDCCComposition"
    },
    {
      "url" : "http://smart.who.int/ddcc/StructureDefinition/DDCCOrganization",
      "mode" : "target",
      "alias" : "DDCCOrganization"
    },
    {
      "url" : "http://smart.who.int/ddcc/StructureDefinition/DDCCCountryOfVaccination",
      "mode" : "target",
      "alias" : "DDCCCountryOfVaccination"
    },
    {
      "url" : "http://smart.who.int/ddcc/StructureDefinition/DDCCVaccineBrand",
      "mode" : "target",
      "alias" : "DDCCVaccineBrand"
    },
    {
      "url" : "http://smart.who.int/ddcc/StructureDefinition/DDCCImmunization",
      "mode" : "target",
      "alias" : "DDCCImmunization"
    }
  ],
  "group" : [
    {
      "name" : "SHCtoDDCC",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "shc",
          "type" : "SHCVaccinationBundleDM",
          "mode" : "source"
        },
        {
          "name" : "ddcc",
          "type" : "Bundle",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "map patient",
          "source" : [
            {
              "context" : "shc",
              "element" : "entry",
              "variable" : "patientEntrySHC"
            }
          ],
          "rule" : [
            {
              "name" : "Is Patient entry",
              "source" : [
                {
                  "context" : "patientEntrySHC",
                  "type" : "Patient",
                  "element" : "resource",
                  "listMode" : "first",
                  "variable" : "patientSHC"
                }
              ],
              "rule" : [
                {
                  "name" : "For each immunization entry",
                  "source" : [
                    {
                      "context" : "shc",
                      "element" : "entry",
                      "variable" : "immunizationEntrySHC"
                    }
                  ],
                  "rule" : [
                    {
                      "name" : "Is immunization entry",
                      "source" : [
                        {
                          "context" : "immunizationEntrySHC",
                          "type" : "Immunization",
                          "element" : "resource",
                          "variable" : "immunizationSHC"
                        }
                      ],
                      "rule" : [
                        {
                          "name" : "Bundle type",
                          "source" : [
                            {
                              "context" : "immunizationEntrySHC"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "ddcc",
                              "contextType" : "variable",
                              "element" : "type",
                              "transform" : "copy",
                              "parameter" : [
                                {
                                  "valueString" : "collection"
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "name" : "DDCC Document entry",
                          "source" : [
                            {
                              "context" : "immunizationEntrySHC"
                            }
                          ],
                          "target" : [
                            {
                              "context" : "ddcc",
                              "contextType" : "variable",
                              "element" : "entry",
                              "variable" : "ddccEntry"
                            }
                          ],
                          "rule" : [
                            {
                              "name" : "DDCC Document bundle",
                              "source" : [
                                {
                                  "context" : "immunizationSHC"
                                }
                              ],
                              "target" : [
                                {
                                  "context" : "ddccEntry",
                                  "contextType" : "variable",
                                  "element" : "resource",
                                  "variable" : "ddccdocument",
                                  "transform" : "create",
                                  "parameter" : [
                                    {
                                      "valueString" : "Bundle"
                                    }
                                  ]
                                }
                              ],
                              "rule" : [
                                {
                                  "name" : "DDCC Document type",
                                  "source" : [
                                    {
                                      "context" : "immunizationSHC"
                                    }
                                  ],
                                  "target" : [
                                    {
                                      "context" : "ddccdocument",
                                      "contextType" : "variable",
                                      "element" : "type",
                                      "transform" : "copy",
                                      "parameter" : [
                                        {
                                          "valueString" : "document"
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name" : "DDCC Document patient entry",
                                  "source" : [
                                    {
                                      "context" : "patientSHC"
                                    }
                                  ],
                                  "target" : [
                                    {
                                      "context" : "ddccdocument",
                                      "contextType" : "variable",
                                      "element" : "entry",
                                      "variable" : "ddccDocumentEntry"
                                    }
                                  ],
                                  "rule" : [
                                    {
                                      "name" : "DDCC Document patient resource",
                                      "source" : [
                                        {
                                          "context" : "patientSHC"
                                        }
                                      ],
                                      "target" : [
                                        {
                                          "context" : "ddccDocumentEntry",
                                          "contextType" : "variable",
                                          "element" : "resource",
                                          "variable" : "patientDDCC",
                                          "transform" : "create",
                                          "parameter" : [
                                            {
                                              "valueString" : "Patient"
                                            }
                                          ]
                                        }
                                      ],
                                      "dependent" : [
                                        {
                                          "name" : "SHCPatienttoDDCC",
                                          "variable" : [
                                            "patientSHC",
                                            "patientDDCC"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "name" : "DDCC Document immunization entry",
                                  "source" : [
                                    {
                                      "context" : "immunizationSHC"
                                    }
                                  ],
                                  "target" : [
                                    {
                                      "context" : "ddccdocument",
                                      "contextType" : "variable",
                                      "element" : "entry",
                                      "variable" : "ddccDocumentEntry"
                                    }
                                  ],
                                  "rule" : [
                                    {
                                      "name" : "DDCC Document immunization resource",
                                      "source" : [
                                        {
                                          "context" : "immunizationSHC"
                                        }
                                      ],
                                      "target" : [
                                        {
                                          "context" : "ddccDocumentEntry",
                                          "contextType" : "variable",
                                          "element" : "resource",
                                          "variable" : "immunizationDDCC",
                                          "transform" : "create",
                                          "parameter" : [
                                            {
                                              "valueString" : "Immunization"
                                            }
                                          ]
                                        }
                                      ],
                                      "dependent" : [
                                        {
                                          "name" : "SHCImmunizationtoDDCC",
                                          "variable" : [
                                            "immunizationSHC",
                                            "immunizationDDCC"
                                          ]
                                        }
                                      ]
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "SHCPatienttoDDCC",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "patient",
          "type" : "SHCPatientDM",
          "mode" : "source"
        },
        {
          "name" : "patientDDCC",
          "type" : "DDCCPatient",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "Status",
          "source" : [
            {
              "context" : "immunization",
              "element" : "status",
              "variable" : "status"
            }
          ],
          "target" : [
            {
              "context" : "immunizationDDCC",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "status"
                }
              ]
            }
          ]
        },
        {
          "name" : "Coding",
          "source" : [
            {
              "context" : "immunization",
              "element" : "coding",
              "variable" : "coding"
            }
          ],
          "target" : [
            {
              "context" : "immunizationDDCC",
              "contextType" : "variable",
              "element" : "coding",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "coding"
                }
              ]
            }
          ]
        },
        {
          "name" : "Occurrence DateTime",
          "source" : [
            {
              "context" : "immunization",
              "element" : "occurrence",
              "variable" : "occurrenceDateTime"
            }
          ],
          "target" : [
            {
              "context" : "immunizationDDCC",
              "contextType" : "variable",
              "element" : "occurrence",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "occurrenceDateTime"
                }
              ]
            }
          ]
        },
        {
          "name" : "Manufacturer",
          "source" : [
            {
              "context" : "immunization",
              "element" : "manfacturer",
              "variable" : "manfacturer"
            }
          ],
          "target" : [
            {
              "context" : "immunizationDDCC",
              "contextType" : "variable",
              "element" : "manfacturer",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "manfacturer"
                }
              ]
            }
          ]
        },
        {
          "name" : "Lot Number",
          "source" : [
            {
              "context" : "immunization",
              "element" : "lotNumber",
              "variable" : "lotNumber"
            }
          ],
          "target" : [
            {
              "context" : "immunizationDDCC",
              "contextType" : "variable",
              "element" : "lotNumber",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "lotNumber"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "SHCImmunizationtoDDCC",
      "typeMode" : "none",
      "input" : [
        {
          "name" : "immunization",
          "type" : "SHCImmunizationDM",
          "mode" : "source"
        },
        {
          "name" : "immunizationDDCC",
          "type" : "DDCCImmunization",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "Status",
          "source" : [
            {
              "context" : "immunization",
              "element" : "status",
              "variable" : "status"
            }
          ],
          "target" : [
            {
              "context" : "immunizationDDCC",
              "contextType" : "variable",
              "element" : "status",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "status"
                }
              ]
            }
          ]
        },
        {
          "name" : "Coding",
          "source" : [
            {
              "context" : "immunization",
              "element" : "coding",
              "variable" : "coding"
            }
          ],
          "target" : [
            {
              "context" : "immunizationDDCC",
              "contextType" : "variable",
              "element" : "coding",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "coding"
                }
              ]
            }
          ]
        },
        {
          "name" : "Occurrence DateTime",
          "source" : [
            {
              "context" : "immunization",
              "element" : "occurrence",
              "variable" : "occurrenceDateTime"
            }
          ],
          "target" : [
            {
              "context" : "immunizationDDCC",
              "contextType" : "variable",
              "element" : "occurrence",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "occurrenceDateTime"
                }
              ]
            }
          ]
        },
        {
          "name" : "Manufacturer",
          "source" : [
            {
              "context" : "immunization",
              "element" : "manfacturer",
              "variable" : "manfacturer"
            }
          ],
          "target" : [
            {
              "context" : "immunizationDDCC",
              "contextType" : "variable",
              "element" : "manfacturer",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "manfacturer"
                }
              ]
            }
          ]
        },
        {
          "name" : "Lot Number",
          "source" : [
            {
              "context" : "immunization",
              "element" : "lotNumber",
              "variable" : "lotNumber"
            }
          ],
          "target" : [
            {
              "context" : "immunizationDDCC",
              "contextType" : "variable",
              "element" : "lotNumber",
              "transform" : "copy",
              "parameter" : [
                {
                  "valueId" : "lotNumber"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.